package com.guoxin.concurrentprogramming.chapter4.producerconsumer;

public final class PCData {

    private final int initData;

    public PCData(int initData) {
        this.initData = initData;
    }

    public PCData(String initData) {
        this.initData = Integer.valueOf(initData);
    }

    public int get(){
        return initData;
    }

    @Override
    public String toString() {
        return "PCData{" +
                "initData=" + initData +
                '}';
    }
}
